package be.nvlooy.moviereminder.service;

import org.springframework.beans.factory.annotation.Autowired;

import be.nvlooy.moviereminder.entities.User;
import be.nvlooy.moviereminder.security.SecurityFacade;

public class BasicService {
	
	private SecurityFacade securityFacade;
	
	@Autowired
	public void setSecurityFacade(SecurityFacade securityFacade) {
		this.securityFacade = securityFacade;
	}

	public User getAuthenticatedUser() {
		return securityFacade.getAuthenticatedUser();
	}
	
	public boolean isLoggedIn() {
		return securityFacade.isLoggedIn();
	}
}
